package com.sc.controller;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.sc.bean.User;
import com.sc.serviceimpl.ApproverImpl;

@Controller
public class ApproverController {
	
	@Autowired
	private ApproverImpl approverImpl;
	
	@RequestMapping("queryApprover")
	@ResponseBody
	public Map<String,Object> queryApprover (int name){
	System.out.println(name);
	Map<String,Object> map=new HashMap<String,Object>();
		
	List<User> userList=approverImpl.find();	
	map.put("userList",userList);	
	System.out.println("一二三");
	
	return map;
		
	}
	
}
